package com.zmc.lostfound.post.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.lostfound.common.utils.PageResult;
import com.zmc.lostfound.common.utils.Result;
import com.zmc.lostfound.post.entity.PostReportEntity;
import com.zmc.lostfound.post.vo.PostReportQueryVO;
import com.zmc.lostfound.post.vo.PostReportSaveVO;

/**
 * @author ZMC
 * @description 帖子举报业务接口
 * @email 2869581855@qq.com
 * @date 2023-07-05 15:49:44
 */
public interface PostReportService extends IService<PostReportEntity> {

    /**
     * 多条件查询帖子举报信息
     *
     * @param postReportQueryVO 帖子举报信息查询请求体
     * @return PageResult
     */
    PageResult queryPage(PostReportQueryVO postReportQueryVO);

    /**
     * 按主键id查询帖子举报信息
     *
     * @param id 举报信息id
     * @return PostReportEntity
     */
    PostReportEntity queryInfoById(Long id);

    /**
     * 用户举报帖子
     *
     * @param postReportSaveVO 帖子举报信息新增/修改请求体
     * @return Result
     */
    Result insertPostReport(PostReportSaveVO postReportSaveVO);

    /**
     * 修改帖子举报信息
     *
     * @param postReportSaveVO 帖子举报信息新增/修改请求体
     * @return Result
     */
    Result updatePostReport(PostReportSaveVO postReportSaveVO);

    /**
     * 按主键id删除帖子举报信息
     *
     * @param id 举报信息id
     * @return Result
     */
    Result deleteById(Long id);

    /**
     * 按帖子id删除帖子举报信息
     *
     * @param postId 帖子id
     * @return Result
     */
    Result deleteBatchByPostId(Long postId);

}

